<?php
/**
 * Created by JetBrains PhpStorm.
 * User: T420
 * Date: 10/24/12
 * Time: 9:02 AM
 * To change this template use File | Settings | File Templates.
 */
class Models_Login extends Libs_Model
{
    public function __construct()
    {
        parent::__construct();
    }
    public function getlogin($username,$pass)
    {
        $this->db->connect();
        $login=$this->db->executeQuery("select * from lb_admin where emname='$username' and password=md5('$pass')");
        $this->db->disconnect();
        return $login;
    }
}
